package com.springcloud.demo.base.po;

import lombok.Builder;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Builder
@Table(name = "SEATASERVERB")
public class ServerB{

    @Id
    @KeySql(sql = "select SEATASERVERB_SEQ_ID.nextval from dual", order = ORDER.BEFORE)
    @ColumnType(column = "ID", jdbcType = JdbcType.NUMERIC)
    private Integer id;

    @ColumnType(column = "NAME", jdbcType = JdbcType.VARCHAR)
    private String name;

    @ColumnType(column = "INSERTDATE", jdbcType = JdbcType.TIMESTAMP)
    private Date insertDate;
}

